﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Linker.Properties;
using Communication.Transporter.Linker;

namespace Linker.LinkerException
{
    public class LinkerSocketException : Exception
    {
        public const byte MESSAGE_OUT_OF_LENGTH = 0;

        public static LinkerSocketException GetInstance(byte errorCode)
        {
            switch (errorCode)
            { 
                case MESSAGE_OUT_OF_LENGTH:
                    return new LinkerSocketException(StringResource.MESSAGE_OUT_OF_LENGTH);
                default:
                    return new LinkerSocketException();
            }
        }

        protected LinkerSocketException() { }

        protected LinkerSocketException(string message) : base(message) { }
    }
}
